﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>



<?php
include("inc/joomlaInt.php");
include("inc/inc_configuration.php");

if ($jUser==0)
{
	echo "Bitte zuerst einloggen!";
}
else
{
	$uId=$_GET["id"];
	
	if ($jUser==$uId)
	{
		$gamertag="Nicht angegeben";
		$icq="Nicht angegeben";
		
		$q="SELECT * FROM $tbl_ui WHERE userId=$uId";
		$qe=mysql_query($q);
		$qc=mysql_num_rows($qe);
		
		if ($qc>0)
		{
			$qeo=mysql_fetch_object($qe);
			$gamertag=$qeo->gamertag;
			$icq=$qeo->icq;	
		}
		
		echo "	<h1>$username</h1>
				<form action='profil_bearbeiten_v.php' method='post'>
				<table id='tabelle'>
					<thead>
						<tr>
							<th></th>
							<th></th>
						</tr>
					</thead>
					<tr>
						<td>Gamertag</td>
						<td><input type='text' size='17' name='gamertag' value='$gamertag'></td>
					</tr>
					<tr>
						<td>ICQ</td>
						<td><input type='text' size='17' name='icq' value='$icq'></td>
					</tr>
					<tr>
						<td colspan='2'><input type='submit' value='Speichern' class='button eintragen'></td>
					</tr>
					<thead>
						<tr>
							<th colspan='2'></th>
						</tr>
					</thead>
				</table></form><br><br>";

		
		echo '<thead><tr><th colspan="21"></th></tr></thead></table><center>';
	}
	else
	{
	}	
		echo '<br><br><a href="lima.php" class="button zurueck">Zurück</a></center>';
}
?>

</body>
</html>